home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_38130.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  60 lines

  1. -- card: 38130 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: jgreely@tut.cis.ohio-state.edu (Daemon Fortune (or vice versa))
  12.  
  13. Date: 11 Mar 88 08:09:29 GMT
  14. Followup-To: comp.sys.mac.hypercard
  15.  
  16. This is cross-posted to comp.sys.mac.hypercard, with followups
  17. redirected there.
  18.  
  19. In article <1096@PT.CS.CMU.EDU> nivek@ROVER.RI.CMU.EDU (Kevin Dowling) writes:
  20. >Does someone have a script or simple method for printing cards that have 
  21. >changed in a stack since the stack was last printed? I have a growing stack
  22. >and once in a while would like to just print the cards that changed 
  23. >since I last printed. Is there a Hypercard feature I don't know about or a 
  24. >simple solution? Thanks.
  25.  
  26. I'm not at a Mac right now, so I can't give you a tested solution, but
  27. here's a general idea:
  28.  
  29. Put an (in)visible field in the background, called "date".
  30.  
  31. Put a few lines in your background script that are activated whenever
  32. you get a closeField, like this:
  33.  
  34. on closeField
  35.   put the date into field "date"
  36. end closeField
  37.  
  38. Theoretically, this will set the contents of the date field to the
  39. current date whenever the card has been changed (I seem to recall a
  40. problem if you go to another card without formally "closing" the field
  41. (pressing tab).  I *could* be wrong).
  42.  
  43.   You'll also need a field somewhere that holds the date you last ran
  44. your print script.  I'm going to wave my hands on the structure of the
  45. print script (I haven't done much printing), and just say that you
  46. search the stack for cards containing a date higher than the "last
  47. printed" date, and print them.  When you're done, reset the "last
  48. printed" date to the current date.  If you make changes frequently,
  49. you may want time, too.
  50.  
  51.   Also, the default date format probably won't work (unless HC can
  52. recognize it as a date), since 12/11/66 is greater than 11/10/88.
  53.  
  54.   If you need any further help, send e-mail and I'll send you a stack
  55. that does this (which means I'll write one, just to prove I'm right :-))
  56.  
  57.  
  58. -- part contents for background part 45
  59. ----- text -----
  60. Re: Printing changed cards in a stack